/**
    不需要登录的页面
**/

import singlePageRouter from './singlePageRouter'
import mainPageRouter from './mainPageRouter'

const asyncRouterMap = mainPageRouter.concat(singlePageRouter).concat(
  {
    path: '*',
    redirect: '/404',
    privilegeCode: 'dashboard'
  })

const constantRouterMap = [
//   {
//   path: '/404',
//   component: resolve => require(['@/common/errorPages/404.vue'], resolve)
// }, {
//   path: '/403',
//   component: resolve => require(['@/common/errorPages/403.vue'], resolve)
// }
].concat(asyncRouterMap)

// 判断页面是否一定要登录才可以访问
/* const isNeedLogin = function (to) {
  let ret = true
  return ret
} */
export default constantRouterMap
